#!/bin/bash
service_name=$(cat app.service_name)
echo 获取安装服务名称  ${service_name}
echo 停用自动启动
systemctl disable ${service_name}
echo 删除系统服务配置
rm -f /lib/systemd/system/${service_name}.service
rm -f app.service_name